package com.zhiyou100.vo;

public class ResponseVo<T> {
	//请求处理结果的状态码
	//eg：登录成功=200  账号不存在=403001 密码错误=403002
	private Integer code;
	//对状态码的说明
	private String message;
	//发送浏览的数据
	//eg：登录成功后的用户信息
	private T data;
	
	
	
	public ResponseVo(Integer code, String message, T data) {
		super();
		this.code = code;
		this.message = message;
		this.data = data;
	}
	public ResponseVo() {
		super();
		// TODO Auto-generated constructor stub
	}
	public Integer getCode() {
		return code;
	}
	public void setCode(Integer code) {
		this.code = code;
	}
	public String getMessage() {
		return message;
	}
	public void setMessage(String message) {
		this.message = message;
	}
	public T getData() {
		return data;
	}
	public void setData(T data) {
		this.data = data;
	}
	
	
}
